<template>
    <el-image :src="url" :style="style">
      <template #error>
          <el-image  :src="getImgUrl('/guigu-pick/product/category/product-test.jpg')"/>
      </template>
    </el-image>
</template>

<script setup>
import {getImgUrl} from "@/api/util/util.js";
defineProps({
  url:{type:String},
  style:{type:String}
})
</script>

<script>
export default {
  name:"GuiguImage"
}
</script>
<style scoped>

</style>